import request from "./request";


/**
 * @description 公共API 
 */




//图片获取 type 0封面  1封面轮播
export const getImage = (data,isLoding=false)=> request({
	url:'/earthwork/business/cover',
	method:'get',
	data:data
},isLoding)

//就业栏数据
export const getJob = (data,isLoding=false)=> {
	let url='/earthwork/business/job'
	if(data) {
		url='/earthwork/business/job/'+data
	}
 return	request({
		url,
		method:'get',
		data
	},isLoding)
}

//公告栏数据
export const getNotice= (data,isLoding=false)=> {
	let url='/earthwork/business/notice'
	if(data) {
		url='/earthwork/business/notice/'+data
	}
 return	request({
		url,
		method:'get',
		data
	},isLoding)
}